package com.info.zhiduoduo.admin.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.info.zhiduoduo.admin.model.formbean.order.OrderListFormBean;
import com.info.zhiduoduo.admin.model.formbean.wxnotice.QueryWxNoticeFormBean;
import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
import com.info.zhiduoduo.core.service.common.BaseService;
import com.info.zhiduoduo.repository.dto.weixin.WxNoticeDto;
import com.info.zhiduoduo.repository.entity.system.SystemScheduleTaskItem;
import com.info.zhiduoduo.repository.mapper.weixin.WxNoticeMapper;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

/**
 * @author wang
 * @create 2021/12/1 10:55
 **/
@Service
public class WxNoticeService extends BaseService {

    @Resource
    private WxNoticeMapper wxNoticeMapper;

    /**
     * 消息推送记录列表
     *
     * @param formBean
     * @return
     */
    public SmartResult queryWxNotice(BaseSimpleFormBean<QueryWxNoticeFormBean> formBean) {
        Page<WxNoticeDto> page = PageHelper.startPage(formBean.getPage(), formBean.getRows());
        wxNoticeMapper.queryWxNotice();
        return SmartResult.ofPage(page);

    }
}
